package com.qf.feign;

import com.qf.pojo.Books;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("04REDISCACHEPROVIDER-EUREKA")
@RequestMapping("/cache")
public interface CacheFeignClient {
    @GetMapping("/get/{key}")
    String getAllBooks(@PathVariable String key);
//
//    @PostMapping("/set/{key}")
//   String save2Redis(@PathVariable String key,@RequestBody String values);

    @PostMapping("/set/{key}")
    String save2Redis(@PathVariable String key, @RequestBody List<Books> all);



}
